package org.wangchaocheng.cloudgallery.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 错误枚举
 * @author wangchaocheng
 * @date 2025/03/25
 */
@Getter
@AllArgsConstructor
public enum ErrorEnum {

    E_OK("0_E_OK","server.message.ok"),

    E_NOT_LOGIN("E_NOT_LOGIN","server.message.error.not_login"),

    E_PERMISSION_LIMIT("E_PERMISSION_LIMIT","server.message.error.permission_limit!"),

    E_COMMON_BIZ_ERROR("E_COMMON_BIZ_ERROR" , "server.message.error.common_biz_error"),

    E_COMMON_SYSTEM_ERROR("E_COMMON_SYSTEM_ERROR" , "server.message.error.system_error"),

    E_SYS_RUNTIME_EXCEPTION("E_SYS_RUNTIME_EXCEPTION", "server.message.error.runtime_error"),

    E_PARAMETER_VALID_EXCEPTION("E_PARAMETER_VALID_EXCEPTION", "server.message.error.parameter_valid_exception"),

    E_PARAMETER_IS_NULL("E_PARAMETER_IS_NULL","server.message.error.parameter_is_null"),

    E_PARAMETER_IS_BLANK("E_PARAMETER_IS_BLANK", "server.message.error.parameter_is_blank"),

    E_PARAMETER_STR_OUT_OF_BOUND("E_PARAMETER_STR_OUT_OF_BOUND", "server.message.error.out_of_range"),

    E_PARAMETER_VALUE_NOT_IN_ARRAY("E_PARAMETER_VALUE_NOT_IN_ARRAY", "server.message.error.out_of_range"),

    E_PARAMETER_LIST_OUT_OF_BOUND("E_PARAMETER_LIST_OUT_OF_BOUND","server.message.error.out_of_range"),

    E_BIZ_KEY_DUPLICATE("E_BIZ_KEY_DUPLICATE","server.message.error.key_duplicate"),

    E_BIZ_NOT_EXIST("E_BIZ_NOT_EXIST","server.message.error.not_exist"),

    E_BIZ_WAIT_TIMEOUT("E_BIZ_WAIT_TIMEOUT","server.message.error.wait_timeout"),

    E_INVALID("500_E_INVALID","server.message.error.other_exception");

    private final String code;

    private final String message;

}
